```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>IntelliJ IDEA 性能优化指南 | 技术小馆</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            color: #333;
            line-height: 1.6;
        }
        h1, h2, h3, h4 {
            font-family: 'Noto Serif SC', serif;
            font-weight: 600;
        }
        .hero-overlay {
            background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .code-block {
            background-color: #2d3748;
            color: #e2e8f0;
            border-radius: 0.5rem;
            overflow-x: auto;
        }
        .tip-card {
            border-left: 4px solid #4299e1;
        }
        .warning-card {
            border-left: 4px solid #ed8936;
        }
        .success-card {
            border-left: 4px solid #48bb78;
        }
        .mermaid-container {
            background-color: #f7fafc;
            border-radius: 0.5rem;
            padding: 1.5rem;
        }
        .highlight-text {
            background: linear-gradient(120deg, #e0f2fe 0%, #bae6fd 100%);
            background-repeat: no-repeat;
            background-size: 100% 40%;
            background-position: 0 88%;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <section class="relative h-96 flex items-center justify-center bg-cover bg-center" style="background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');">
        <div class="hero-overlay absolute inset-0"></div>
        <div class="relative z-10 px-4 text-center text-white max-w-4xl">
            <h1 class="text-4xl md:text-5xl font-bold mb-4">IntelliJ IDEA 性能优化指南</h1>
            <p class="text-xl md:text-2xl mb-8">让您的开发环境如丝般顺滑</p>
            <div class="flex justify-center space-x-4">
                <a href="#why-optimize" class="px-6 py-3 bg-blue-600 hover:bg-blue-700 rounded-lg font-medium transition duration-300">为什么需要优化</a>
                <a href="#optimization-tips" class="px-6 py-3 bg-transparent border-2 border-white hover:bg-white hover:text-gray-900 rounded-lg font-medium transition duration-300">优化技巧</a>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <main class="max-w-6xl mx-auto px-4 py-12">
        <!-- Introduction -->
        <section class="mb-16 text-center">
            <p class="text-lg text-gray-600 max-w-3xl mx-auto">
                IntelliJ IDEA 是 Java 开发者最常用的集成开发环境（IDE）之一，以其强大的功能和智能的代码提示著称。然而，随着项目规模的增大和插件数量的增加，IDEA 的性能可能会下降，导致启动变慢、卡顿甚至崩溃。本指南将帮助您解决这些问题。
            </p>
        </section>

        <!-- Why Optimize Section -->
        <section id="why-optimize" class="mb-16">
            <h2 class="text-3xl font-bold mb-8 text-center highlight-text inline-block px-4 py-2">1. 为什么需要优化 IntelliJ IDEA 性能？</h2>
            
            <div class="grid md:grid-cols-2 gap-8 mb-12">
                <!-- Performance Issues -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover transition duration-300">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-red-100 p-3 rounded-full mr-4">
                                <i class="fas fa-exclamation-triangle text-red-500 text-xl"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">1.1 性能问题的表现</h3>
                        </div>
                        <ul class="space-y-3 text-gray-600">
                            <li class="flex items-start">
                                <i class="fas fa-clock text-blue-500 mt-1 mr-2 flex-shrink-0"></i>
                                <span><strong>启动缓慢：</strong>IDEA 启动时间过长，影响开发效率。</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-tachometer-alt text-blue-500 mt-1 mr-2 flex-shrink-0"></i>
                                <span><strong>卡顿现象：</strong>在编辑代码、导航或运行任务时出现卡顿。</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-memory text-blue-500 mt-1 mr-2 flex-shrink-0"></i>
                                <span><strong>内存占用高：</strong>IDEA 占用大量内存，导致系统变慢。</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-bug text-blue-500 mt-1 mr-2 flex-shrink-0"></i>
                                <span><strong>崩溃或无响应：</strong>在复杂操作或大项目中，IDEA 可能崩溃或无响应。</span>
                            </li>
                        </ul>
                    </div>
                </div>

                <!-- Causes of Issues -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover transition duration-300">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-yellow-100 p-3 rounded-full mr-4">
                                <i class="fas fa-search text-yellow-500 text-xl"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">1.2 性能问题的原因</h3>
                        </div>
                        <ul class="space-y-3 text-gray-600">
                            <li class="flex items-start">
                                <i class="fas fa-project-diagram text-blue-500 mt-1 mr-2 flex-shrink-0"></i>
                                <span><strong>项目规模过大：</strong>大型项目包含大量文件和依赖，增加了 IDE 的负担。</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-puzzle-piece text-blue-500 mt-1 mr-2 flex-shrink-0"></i>
                                <span><strong>插件过多：</strong>安装过多插件会占用内存和 CPU 资源。</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-cog text-blue-500 mt-1 mr-2 flex-shrink-0"></i>
                                <span><strong>配置不当：</strong>JVM 参数、索引设置等配置不合理，影响性能。</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-microchip text-blue-500 mt-1 mr-2 flex-shrink-0"></i>
                                <span><strong>硬件限制：</strong>内存、CPU 或硬盘性能不足，无法满足 IDEA 的需求。</span>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>

            <!-- Problem Visualization -->
            <div class="mermaid-container mb-8">
                <div class="mermaid">
                    graph TD
                        A[IDEA 性能问题] --> B[启动缓慢]
                        A --> C[操作卡顿]
                        A --> D[内存占用高]
                        A --> E[崩溃无响应]
                        B --> F[项目规模大]
                        C --> G[插件过多]
                        D --> H[JVM配置不当]
                        E --> I[硬件限制]
                </div>
            </div>
        </section>

        <!-- Optimization Tips Section -->
        <section id="optimization-tips" class="mb-16">
            <h2 class="text-3xl font-bold mb-8 text-center highlight-text inline-block px-4 py-2">2. 优化 IntelliJ IDEA 性能的实用技巧</h2>
            
            <!-- JVM Parameters -->
            <div class="bg-white rounded-xl shadow-md overflow-hidden mb-8 card-hover transition duration-300">
                <div class="p-6">
                    <div class="flex items-center mb-4">
                        <div class="bg-blue-100 p-3 rounded-full mr-4">
                            <i class="fas fa-sliders-h text-blue-500 text-xl"></i>
                        </div>
                        <h3 class="text-2xl font-bold text-gray-800">2.1 调整 JVM 参数</h3>
                    </div>
                    <p class="text-gray-600 mb-4">
                        IDEA 是基于 Java 的应用程序，其性能受 JVM 参数的影响。通过调整 JVM 参数，可以显著提升 IDEA 的性能。
                    </p>
                    
                    <div class="grid md:grid-cols-2 gap-6">
                        <!-- Step 1 -->
                        <div class="tip-card bg-gray-50 p-4 rounded-lg">
                            <h4 class="font-bold text-lg mb-2 text-blue-600 flex items-center">
                                <i class="fas fa-search-location mr-2"></i> 步骤 1：找到 idea.vmoptions 文件
                            </h4>
                            <ul class="text-gray-600 space-y-2">
                                <li><strong>Windows：</strong>在 IDEA 安装目录的 <code>bin</code> 文件夹中，找到 <code>idea64.exe.vmoptions</code>。</li>
                                <li><strong>macOS/Linux：</strong>在 <code>~/.config/JetBrains/IntelliJIdea&lt;版本号&gt;</code> 目录中，找到 <code>idea.vmoptions</code>。</li>
                            </ul>
                        </div>
                        
                        <!-- Step 2 -->
                        <div class="tip-card bg-gray-50 p-4 rounded-lg">
                            <h4 class="font-bold text-lg mb-2 text-blue-600 flex items-center">
                                <i class="fas fa-edit mr-2"></i> 步骤 2：修改 JVM 参数
                            </h4>
                            <p class="text-gray-600 mb-2">以下是一些常用的 JVM 参数配置：</p>
                            <div class="code-block p-4 rounded-lg">
                                <pre class="text-sm"><code>-Xms2048m  # 初始堆内存大小
-Xmx4096m  # 最大堆内存大小
-XX:ReservedCodeCacheSize=512m  # 代码缓存大小
-XX:+UseG1GC  # 使用 G1 垃圾回收器
-XX:SoftRefLRUPolicyMSPerMB=50  # 软引用回收策略</code></pre>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Step 3 -->
                    <div class="warning-card bg-yellow-50 p-4 rounded-lg mt-4">
                        <h4 class="font-bold text-lg mb-2 text-orange-600 flex items-center">
                            <i class="fas fa-sync-alt mr-2"></i> 步骤 3：重启 IDEA
                        </h4>
                        <p class="text-gray-600">修改完成后，重启 IDEA 使配置生效。</p>
                    </div>
                </div>
            </div>

            <!-- Optimize Indexing -->
            <div class="bg-white rounded-xl shadow-md overflow-hidden mb-8 card-hover transition duration-300">
                <div class="p-6">
                    <div class="flex items-center mb-4">
                        <div class="bg-purple-100 p-3 rounded-full mr-4">
                            <i class="fas fa-search text-purple-500 text-xl"></i>
                        </div>
                        <h3 class="text-2xl font-bold text-gray-800">2.2 优化项目索引</h3>
                    </div>
                    <p class="text-gray-600 mb-4">
                        IDEA 通过索引来提供代码导航和智能提示功能。对于大型项目，索引可能会占用大量资源。
                    </p>
                    
                    <div class="grid md:grid-cols-2 gap-6">
                        <!-- Method 1 -->
                        <div class="tip-card bg-gray-50 p-4 rounded-lg">
                            <h4 class="font-bold text-lg mb-2 text-purple-600 flex items-center">
                                <i class="fas fa-folder-minus mr-2"></i> 方法 1：排除不必要的文件和目录
                            </h4>
                            <p class="text-gray-600 mb-2">在项目设置中，将不需要索引的文件和目录标记为 <code>Excluded</code>：</p>
                            <ol class="text-gray-600 list-decimal pl-5 space-y-1">
                                <li>右键点击项目中的目录。</li>
                                <li>选择 <code>Mark Directory as > Excluded</code>。</li>
                            </ol>
                            <div class="mt-3 text-sm text-gray-500 flex items-center">
                                <i class="fas fa-lightbulb text-yellow-500 mr-2"></i>
                                通常可以排除 <code>node_modules</code>, <code>dist</code>, <code>build</code> 等目录
                            </div>
                        </div>
                        
                        <!-- Method 2 -->
                        <div class="tip-card bg-gray-50 p-4 rounded-lg">
                            <h4 class="font-bold text-lg mb-2 text-purple-600 flex items-center">
                                <i class="fas fa-filter mr-2"></i> 方法 2：减少索引范围
                            </h4>
                            <p class="text-gray-600">在 <code>File > Settings > Editor > File Types</code> 中，移除不必要的文件类型索引。</p>
                            <div class="mt-4">
                                <img src="https://via.placeholder.com/600x300?text=IDEA+File+Types+Settings" alt="IDEA File Types Settings" class="rounded-lg shadow-sm">
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Disable Plugins -->
            <div class="bg-white rounded-xl shadow-md overflow-hidden mb-8 card-hover transition duration-300">
                <div class="p-6">
                    <div class="flex items-center mb-4">
                        <div class="bg-red-100 p-3 rounded-full mr-4">
                            <i class="fas fa-plug text-red-500 text-xl"></i>
                        </div>
                        <h3 class="text-2xl font-bold text-gray-800">2.3 禁用不必要的插件</h3>
                    </div>
                    <p class="text-gray-600 mb-4">
                        插件是 IDEA 功能扩展的重要方式，但过多的插件会拖慢 IDE 的性能。
                    </p>
                    
                    <div class="grid md:grid-cols-2 gap-6">
                        <!-- Steps -->
                        <div>
                            <h4 class="font-bold text-lg mb-2 text-gray-700">操作步骤：</h4>
                            <ol class="text-gray-600 list-decimal pl-5 space-y-2">
                                <li>打开 <code>File > Settings > Plugins</code>。</li>
                                <li>在 <code>Installed</code> 选项卡中，禁用不常用的插件。</li>
                            </ol>
                        </div>
                        
                        <!-- Plugin Examples -->
                        <div>
                            <h4 class="font-bold text-lg mb-2 text-gray-700">可以禁用的插件示例：</h4>
                            <ul class="text-gray-600 space-y-2">
                                <li class="flex items-start">
                                    <i class="fas fa-check-circle text-green-500 mt-1 mr-2 flex-shrink-0"></i>
                                    <span><strong>CVS Integration：</strong>如果不使用 CVS 版本控制。</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-check-circle text-green-500 mt-1 mr-2 flex-shrink-0"></i>
                                    <span><strong>GitHub：</strong>如果不使用 GitHub 功能。</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-check-circle text-green-500 mt-1 mr-2 flex-shrink-0"></i>
                                    <span><strong>Database Tools：</strong>如果不使用数据库工具。</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                    
                    <div class="mt-6 bg-blue-50 p-4 rounded-lg">
                        <div class="flex">
                            <div class="flex-shrink-0">
                                <i class="fas fa-info-circle text-blue-500 text-xl"></i>
                            </div>
                            <div class="ml-3">
                                <p class="text-sm text-blue-700">
                                    定期检查并禁用不常用的插件可以显著提升 IDEA 性能。您可以在需要时临时启用特定插件。
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Code Inspection -->
            <div class="bg-white rounded-xl shadow-md overflow-hidden mb-8 card-hover transition duration-300">
                <div class="p-6">
                    <div class="flex items-center mb-4">
                        <div class="bg-green-100 p-3 rounded-full mr-4">
                            <i class="fas fa-check-double text-green-500 text-xl"></i>
                        </div>
                        <h3 class="text-2xl font-bold text-gray-800">2.4 调整代码检查设置</h3>
                    </div>
                    <p class="text-gray-600 mb-4">
                        IDEA 的代码检查功能非常强大，但也会消耗大量资源。
                    </p>
                    
                    <div class="grid md:grid-cols-2 gap-6">
                        <!-- Method 1 -->
                        <div class="tip-card bg-gray-50 p-4 rounded-lg">
                            <h4 class="font-bold text-lg mb-2 text-green-600 flex items-center">
                                <i class="fas fa-toggle-off mr-2"></i> 方法 1：禁用不必要的检查
                            </h4>
                            <p class="text-gray-600">在 <code>File > Settings > Editor > Inspections</code> 中，禁用不必要的代码检查规则。</p>
                            <div class="mt-3">
                                <img src="https://via.placeholder.com/600x300?text=IDEA+Inspections+Settings" alt="IDEA Inspections Settings" class="rounded-lg shadow-sm">
                            </div>
                        </div>
                        
                        <!-- Method 2 -->
                        <div class="tip-card bg-gray-50 p-4 rounded-lg">
                            <h4 class="font-bold text-lg mb-2 text-green-600 flex items-center">
                                <i class="fas fa-sliders-h mr-2"></i> 方法 2：降低检查级别
                            </h4>
                            <p class="text-gray-600">在 <code>File > Settings > Editor > Inspections</code> 中，将检查级别从 <code>All Problems</code> 调整为 <code>Syntax</code>。</p>
                            <div class="mt-4 bg-yellow-50 p-3 rounded-lg">
                                <div class="flex">
                                    <div class="flex-shrink-0">
                                        <i class="fas fa-exclamation-triangle text-yellow-500"></i>
                                    </div>
                                    <div class="ml-3">
                                        <p class="text-sm text-yellow-700">
                                            这会减少实时检查的深度，但可能会错过一些潜在问题。
                                        </p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Power Save Mode -->
            <div class="bg-white rounded-xl shadow-md overflow-hidden mb-8 card-hover transition duration-300">
                <div class="p-6">
                    <div class="flex items-center mb-4">
                        <div class="bg-yellow-100 p-3 rounded-full mr-4">
                            <i class="fas fa-battery-half text-yellow-500 text-xl"></i>
                        </div>
                        <h3 class="text-2xl font-bold text-gray-800">2.5 使用 Power Save 模式</h3>
                    </div>
                    <p class="text-gray-600 mb-4">
                        IDEA 的 Power Save 模式可以禁用一些耗电功能，从而提升性能。
                    </p>
                    
                    <div class="grid md:grid-cols-2 gap-6">
                        <!-- Steps -->
                        <div class="tip-card bg-gray-50 p-4 rounded-lg">
                            <h4 class="font-bold text-lg mb-2 text-yellow-600 flex items-center">
                                <i class="fas fa-power-off mr-2"></i> 启用方法
                            </h4>
                            <ol class="text-gray-600 list-decimal pl-5 space-y-2">
                                <li>点击右下角的 <code>Power Save Mode</code> 按钮。</li>
                                <li>或者通过 <code>File > Power Save Mode</code> 启用。</li>
                            </ol>
                        </div>
                        
                        <!-- Effects -->
                        <div class="tip-card bg-gray-50 p-4 rounded-lg">
                            <h4 class="font-bold text-lg mb-2 text-yellow-600 flex items-center">
                                <i class="fas fa-list-alt mr-2"></i> 影响的功能
                            </h4>
                            <ul class="text-gray-600 space-y-2">
                                <li class="flex items-start">
                                    <i class="fas fa-ban text-red-500 mt-1 mr-2 flex-shrink-0"></i>
                                    <span>禁用后台代码分析</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-ban text-red-500 mt-1 mr-2 flex-shrink-0"></i>
                                    <span>减少自动补全建议</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-ban text-red-500 mt-1 mr-2 flex-shrink-0"></i>
                                    <span>暂停版本控制更新</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Clear Cache -->
            <div class="bg-white rounded-xl shadow-md overflow-hidden mb-8 card-hover transition duration-300">
                <div class="p-6">
                    <div class="flex items-center mb-4">
                        <div class="bg-indigo-100 p-3 rounded-full mr-4">
                            <i class="fas fa-broom text-indigo-500 text-xl"></i>
                        </div>
                        <h3 class="text-2xl font-bold text-gray-800">2.6 清理缓存和索引</h3>
                    </div>
                    <p class="text-gray-600 mb-4">
                        IDEA 的缓存和索引可能会随着时间的推移变得臃肿。
                    </p>
                    
                    <div class="grid md:grid-cols-2 gap-6">
                        <!-- Steps -->
                        <div class="tip-card bg-gray-50 p-4 rounded-lg">
                            <h4 class="font-bold text-lg mb-2 text-indigo-600 flex items-center">
                                <i class="fas fa-trash-alt mr-2"></i> 清理步骤
                            </h4>
                            <ol class="text-gray-600 list-decimal pl-5 space-y-2">
                                <li>打开 <code>File > Invalidate Caches / Restart</code>。</li>
                                <li>点击 <code>Invalidate and Restart</code>。</li>
                            </ol>
                        </div>
                        
                        <!-- Effects -->
                        <div class="tip-card bg-gray-50 p-4 rounded-lg">
                            <h4 class="font-bold text-lg mb-2 text-indigo-600 flex items-center">
                                <i class="fas fa-info-circle mr-2"></i> 注意事项
                            </h4>
                            <ul class="text-gray-600 space-y-2">
                                <li class="flex items-start">
                                    <i class="fas fa-clock text-blue-500 mt-1 mr-2 flex-shrink-0"></i>
                                    <span>首次重启后索引重建可能需要一些时间</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-save text-blue-500 mt-1 mr-2 flex-shrink-0"></i>
                                    <span>不会影响项目文件，仅清理缓存</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Advanced Techniques -->
        <section class="mb-16">
            <h2 class="text-3xl font-bold mb-8 text-center highlight-text inline-block px-4 py-2">3. 高级优化技巧</h2>
            
            <div class="grid md:grid-cols-3 gap-6">
                <!-- Local History -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover transition duration-300">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-blue-100 p-3 rounded-full mr-4">
                                <i class="fas fa-history text-blue-500 text-xl"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">3.1 使用本地历史记录</h3>
                        </div>
                        <p class="text-gray-600 mb-4">
                            IDEA 的本地历史记录功能会记录文件的更改历史，但也会占用资源。
                        </p>
                        <div class="bg-gray-50 p-4 rounded-lg">
                            <h4 class="font-bold text-gray-700 mb-2">优化方法：</h4>
                            <ol class="text-gray-600 list-decimal pl-5 space-y-1">
                                <li>打开 <code>File > Settings > Appearance & Behavior > System Settings > Local History</code>。</li>
                                <li>调整 <code>Days to keep changes</code> 和 <code>Maximum size per file</code> 参数。</li>
                            </ol>
                        </div>
                    </div>
                </div>
                
                <!-- Version Control -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover transition duration-300">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-green-100 p-3 rounded-full mr-4">
                                <i class="fab fa-git-alt text-green-500 text-xl"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">3.2 优化版本控制集成</h3>
                        </div>
                        <p class="text-gray-600 mb-4">
                            如果项目使用 Git 等版本控制工具，可以通过以下方法优化集成性能。
                        </p>
                        <div class="bg-gray-50 p-4 rounded-lg">
                            <h4 class="font-bold text-gray-700 mb-2">优化方法：</h4>
                            <ol class="text-gray-600 list-decimal pl-5 space-y-1">
                                <li>打开 <code>File > Settings > Version Control > Background</code>。</li>
                                <li>禁用 <code>Update files in background</code> 和 <code>Refresh status in background</code>。</li>
                            </ol>
                        </div>
                    </div>
                </div>
                
                <!-- Lightweight Editor -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover transition duration-300">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-purple-100 p-3 rounded-full mr-4">
                                <i class="fas fa-file-code text-purple-500 text-xl"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">3.3 使用轻量级编辑器</h3>
                        </div>
                        <p class="text-gray-600 mb-4">
                            对于大型项目，可以使用轻量级编辑器编辑单个文件，减少 IDEA 的负担。
                        </p>
                        <div class="bg-gray-50 p-4 rounded-lg">
                            <h4 class="font-bold text-gray-700 mb-2">推荐编辑器：</h4>
                            <ul class="text-gray-600 space-y-2">
                                <li class="flex items-center">
                                    <i class="fas fa-check text-green-500 mr-2"></i>
                                    Sublime Text
                                </li>
                                <li class="flex items-center">
                                    <i class="fas fa-check text-green-500 mr-2"></i>
                                    VS Code
                                </li>
                                <li class="flex items-center">
                                    <i class="fas fa-check text-green-500 mr-2"></i>
                                    Notepad++
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Real-world Applications -->
        <section class="mb-16">
            <h2 class="text-3xl font-bold mb-8 text-center highlight-text inline-block px-4 py-2">4. 实际项目中的应用</h2>
            
            <div class="grid md:grid-cols-3 gap-6">
                <!-- ts-web -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover transition duration-300">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-gradient-to-r from-blue-500 to-blue-600 text-white p-3 rounded-full mr-4">
                                <i class="fab fa-js text-xl"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">4.1 在 ts-web 项目中优化索引</h3>
                        </div>
                        <p class="text-gray-600 mb-4">
                            在 ts-web 项目中，团队通过排除 <code>node_modules</code> 和 <code>dist</code> 目录，显著减少了索引时间。
                        </p>
                        <div class="bg-blue-50 p-4 rounded-lg">
                            <h4 class="font-bold text-blue-700 mb-2">优化效果：</h4>
                            <ul class="text-blue-700 space-y-1">
                                <li class="flex items-center">
                                    <i class="fas fa-arrow-down text-green-500 mr-2"></i>
                                    索引时间减少 65%
                                </li>
                                <li class="flex items-center">
                                    <i class="fas fa-memory text-green-500 mr-2"></i>
                                    内存占用降低 30%
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                
                <!-- ts-api -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover transition duration-300">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-gradient-to-r from-green-500 to-green-600 text-white p-3 rounded-full mr-4">
                                <i class="fas fa-server text-xl"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">4.2 在 ts-api 项目中调整 JVM 参数</h3>
                        </div>
                        <p class="text-gray-600 mb-4">
                            在 ts-api 项目中，团队将 JVM 的最大堆内存调整为 4096MB，解决了 IDEA 频繁崩溃的问题。
                        </p>
                        <div class="bg-green-50 p-4 rounded-lg">
                            <h4 class="font-bold text-green-700 mb-2">优化效果：</h4>
                            <ul class="text-green-700 space-y-1">
                                <li class="flex items-center">
                                    <i class="fas fa-check-circle text-green-500 mr-2"></i>
                                    崩溃问题完全解决
                                </li>
                                <li class="flex items-center">
                                    <i class="fas fa-tachometer-alt text-green-500 mr-2"></i>
                                    响应速度提升 40%
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                
                <!-- ts-mobile -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover transition duration-300">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-gradient-to-r from-purple-500 to-purple-600 text-white p-3 rounded-full mr-4">
                                <i class="fas fa-mobile-alt text-xl"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">4.3 在 ts-mobile 项目中禁用插件</h3>
                        </div>
                        <p class="text-gray-600 mb-4">
                            在 ts-mobile 项目中，团队禁用了不常用的插件（如 Database Tools），提升了 IDEA 的响应速度。
                        </p>
                        <div class="bg-purple-50 p-4 rounded-lg">
                            <h4 class="font-bold text-purple-700 mb-2">优化效果：</h4>
                            <ul class="text-purple-700 space-y-1">
                                <li class="flex items-center">
                                    <i class="fas fa-bolt text-green-500 mr-2"></i>
                                    启动时间缩短 50%
                                </li>
                                <li class="flex items-center">
                                    <i class="fas fa-plug text-green-500 mr-2"></i>
                                    禁用 12 个不必要插件
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Summary Visualization -->
        <section class="mb-16">
            <div class="mermaid-container">
                <div class="mermaid">
                    pie
                        title IDEA 性能优化关键点
                        "JVM 参数调优" : 35
                        "索引优化" : 25
                        "插件管理" : 20
                        "代码检查调整" : 15
                        "其他优化" : 5
                </div>
            </div>
        </section>

        <!-- Final Tips -->
        <section class="mb-16">
            <div class="bg-gradient-to-r from-blue-500 to-blue-600 rounded-xl p-8 text-white">
                <h3 class="text-2xl font-bold mb-4 flex items-center">
                    <i class="fas fa-lightbulb mr-3"></i>
                    终极性能优化小贴士
                </h3>
                <ul class="space-y-3 text-blue-100">
                    <li class="flex items-start">
                        <i class="fas fa-check-circle mt-1 mr-2 flex-shrink-0"></i>
                        <span>定期清理和优化您的项目设置，就像整理您的工作空间一样</span>
                    </li>
                    <li class="flex items-start">
                        <i class="fas fa-check-circle mt-1 mr-2 flex-shrink-0"></i>
                        <span>根据您的硬件配置调整 JVM 参数 - 不是越大越好</span>
                    </li>
                    <li class="flex items-start">
                        <i class="fas fa-check-circle mt-1 mr-2 flex-shrink-0"></i>
                        <span>保持插件精简，只保留真正需要的功能</span>
                    </li>
                    <li class="flex items-start">
                        <i class="fas fa-check-circle mt-1 mr-2 flex-shrink-0"></i>
                        <span>考虑使用模块化项目结构替代单一大型项目</span>
                    </li>
                    <li class="flex items-start">
                        <i class="fas fa-check-circle mt-1 mr-2 flex-shrink-0"></i>
                        <span>定期升级到最新版本的 IntelliJ IDEA 以获得性能改进</span>
                    </li>
                </ul>
            </div>
        </section>
    </main>

    <!-- Footer -->
    <footer class="bg-gray-900 text-gray-300 py-8">
        <div class="max-w-6xl mx-auto px-4">
            <div class="flex flex-col items-center justify-center">
                <div class="text-xl font-bold mb-2 text-white">技术小馆</div>
                <a href="http://www.yuque.com/jtostring" class="text-blue-400 hover:text-blue-300 transition duration-300">http://www.yuque.com/jtostring</a>
            </div>
        </div>
    </footer>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            },
            pie: {
                useWidth: 800,
                showText: 'always'
            }
        });
        
        // 平滑滚动效果
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function(e) {
                e.preventDefault();
                document.querySelector(this.getAttribute('href')).scrollIntoView({
                    behavior: 'smooth'
                });
            });
        });
    </script>
</body>
</html>
```